<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="/api/userbonus/sendbonus_multiple">
    {if $auth->city_id == 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">城市:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_id" data-rule="required" data-source="general/lihua_city/index" data-order-by="weigh desc" class="form-control selectpage" name="city_id" type="text" value="">
        </div>
    </div>
    {/if}
    {if $auth->city_id > 0}
    <input id="c-city_id" data-rule="required" data-order-by="weigh desc" class="form-control" name="city_id" type="hidden" value="{:$auth->city_id}">
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">手机号:(多个手机号用‘,’号隔开)</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" class="form-control" name="mobile" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选择红包:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bonus_id" 
                data-rule="required" 
                data-source="bonus/bonus/sel" 
                data-order-by="weigh desc" 
                class="form-control selectpage" 
                data-multiple="true" 
                name="bonus_id" 
                type="text" 
                value=""
                >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">数量</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" data-rule="required" class="form-control" name="num" type="number" value="1">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">开始时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="start_time" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">截止时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="end_time" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
